/**
 * @Description:
 * @Author: saqqdy
 * @LastEditors: saqqdy
 * @Date: 2021-07-18 00:39:35
 * @LastEditTime: 2021-07-18 12:01:24
 */
import '@styles/styles.less'
import '@styles/styles.scss'

import history from '@/actions/history'
import { ConnectedRouter } from 'connected-react-router'
import React from 'react'
import ReactDom from 'react-dom'
import { Provider } from 'react-redux'
import { applyMiddleware, createStore } from 'redux'
import reduxThunk from 'redux-thunk'

import { App } from '@components/app/app'

import rootReducers from './reducer/index'

const store = createStore(rootReducers, {}, applyMiddleware(logger, reduxThunk))

ReactDom.render(
    <Provider store={store}>
        <ConnectedRouter history={history}>
            <MyApp />
        </ConnectedRouter>
    </Provider>,
    document.getElementById('root')
)
